package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.WorkOrderShenpi;
import cn.stylefeng.guns.sys.modular.system.model.params.WorkOrderShenpiParam;
import cn.stylefeng.guns.sys.modular.system.model.result.WorkOrderShenpiResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;

@Mapper
public interface WorkOrderShenpiMapper extends BaseMapper<WorkOrderShenpi> {

    int insert(WorkOrderShenpi workOrderShenpi);

    Page<WorkOrderShenpiResult> customPageList(@Param("page") Page pageContext, @Param("param") WorkOrderShenpiParam param);

    WorkOrderShenpiResult detail(Long id);

    WorkOrderShenpi getByWorkId(Serializable id);
}
